#-------------------------------------------------
#
# Project created by QtCreator 2018-01-10T09:00:01
#使用ｑｔ库二次封装实现modbus client and server
#-------------------------------------------------
QT += xml
QT += widgets serialbus serialport

TARGET = ModbusService
TEMPLATE = lib
CONFIG += staticlib


# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        modbusserver.cpp \
    modbusmaster.cpp \
    modbusmanager.cpp

HEADERS += \
        modbusserver.h \
    modbusmaster.h \
    modbusdefine.h \
    modbusmanager.h


INCLUDEPATH += ../DomParser
INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH +=../HmiGsoapQt
INCLUDEPATH += ../MessageLog
INCLUDEPATH += ../../include/actions/INC
INCLUDEPATH += ../../include/actions/INC/Linux
INCLUDEPATH += ../../include/ethercat-igh
INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH += /usr/local/include/modbus/
INCLUDEPATH +=../WebServer/echoserver
INCLUDEPATH +=../CoordinateModule/
INCLUDEPATH +=../AxisObject/

INCLUDEPATH +=../EcatCore
INCLUDEPATH +=../DomParser
INCLUDEPATH +=../Md5Check
INCLUDEPATH +=../HmiGsoapQt
INCLUDEPATH +=../VrepRemoteControlor
INCLUDEPATH +=../WebServer
INCLUDEPATH +=../PointData
INCLUDEPATH +=../ProgramSet
INCLUDEPATH +=../LogicalInstruction
INCLUDEPATH +=../MessageLog
INCLUDEPATH += ../TcpManager
INCLUDEPATH +=../MotorInterface
INCLUDEPATH +=../RegData
INCLUDEPATH +=../MeasureTime
INCLUDEPATH +=../RobotManager
INCLUDEPATH +=../RobotEngine
INCLUDEPATH +=../MotionServer
INCLUDEPATH +=../MotionServer/Axis/
INCLUDEPATH += ../GlobalManager
INCLUDEPATH += ../RobotiqTool
INCLUDEPATH += ../PowerManager
INCLUDEPATH += ../ProgramLanguageTranslate
INCLUDEPATH += /usr/local/include/kdl
INCLUDEPATH +=../FleetService
INCLUDEPATH += ../ProgramSet
INCLUDEPATH += ../XmlParse

＃DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS #为什么其它库pro也要定义这个才起作用。


contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
}
contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")

}
contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
}



contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR =../../lib/x86_WINDOWS
#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_windows
MOC_DIR +=../../build/tmpBuildDirectory_windows
OBJECTS_DIR += ../../build/tmpBuildDirectory_windows
RCC_DIR += ../../build/tmpBuildDirectory_windows
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR =../../lib

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory
MOC_DIR +=../../build/tmpBuildDirectory
OBJECTS_DIR += ../../build/tmpBuildDirectory
RCC_DIR += ../../build/tmpBuildDirectory
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR =../../lib-arm

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_arm
MOC_DIR +=../../build/tmpBuildDirectory_arm
OBJECTS_DIR += ../../build/tmpBuildDirectory_arm
RCC_DIR += ../../build/tmpBuildDirectory_arm
}
